<?php
namespace Shopex\Contracts\Service;

/**
 * 微服务调用统一接口
 *
 * @package default
 * @author 
 */
interface Bus
{
    public function setBaseUrl($url);
    public function json($method, $uri, array $data = [], array $headers = []);
    public function get($uri, array $headers = []);
    public function post($uri, array $data = [], array $headers = []);
    public function put($uri, array $data = [], array $headers = []);
    public function patch($uri, array $data = [], array $headers = []);
    public function delete($uri, array $data = [], array $headers = []);
}
